﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using OnlineEducation.Data.Entities;

namespace OnlineEducation.Models.CourseViewModels
{
    public class CourseSummaryModel
    {
        /// <summary>
        /// 科目的标题
        /// </summary>
        public string CourseTitle { get; set; }
        /// <summary>
        /// 科目描述
        /// </summary>
        public string Description { get; set; }
        /// <summary>
        /// 教师名称
        /// </summary>
        public string TeacherName { get; set; }
        /// <summary>
        /// 课程的二级标题
        /// </summary>
        public string CourserSubTitle { get; set; }
        public int CourseId { get; set; }
        public int TeacherId { get; set; }
        /// <summary>
        /// 所有教学计划的学生总人数
        /// </summary>
        public int StudentCount { get; set; }
        /// <summary>
        /// 课时列表,因为每个老师自己的课程会有多种课时,精简版,精华版,入门版
        /// </summary>
        public int LessionCount { get; set; }
        /// <summary>
        /// 教师头像
        /// </summary>
        public string TeacherImage { get; set; }
        /// <summary>
        /// 教师自我介绍
        /// </summary>
        public string TeacherTitle { get; set; }
        /// <summary>
        /// 评论数据
        /// </summary>
        public int EvulationCount { get; set; }
    }

    public class CourseDetailModel
    {
        public Course Course { get; set; }
        public List<TeachingPlan> TeachingPlans { get; set; }
        /// <summary>
        /// 每个课程的评价
        /// </summary>
        public int EvaluationCount { get; set; }

        public List<Booking> Bookings { get; set; }
    }
}
